package cn.edu.ustc.xrovers.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table
public class ProcessedStatement {

	private Integer id;
	private int year;
	/*盈利能力指标*/
	private double salesMargin;//销售利润率
	private double operatingMargin;//营业利润率
	private double pretaxMargin;//税前利润率
	private double netMargin;//净利润率
	private double equityReturn;//权益报酬率
	private double assetReturn;//资产报酬率
	/*营运能力指标*/
	private double tat;//总资产周转率
	private double fat;//固定资产周转率
	private double art;//应收帐款周转率
	private double iat;//存货周转率
	/*偿债能力指标*/
	private double alr;//资产负债率
	private double dter;//负债与所有者权益比率
	private double dtnr;//负债与有形资产比率
	private double currentRatio;//流动比率
	private double quickRatio;//速动比率
	private double cashRatio;//现金比率
	private double interestCover;//利息保障倍数
	/*发展能力指标*/
	private double salesGrowth;//销售增长率
	private double mpg;//主营业务利润增长率
	private double cgr;//自有资本增值率
	/*现金流量指标*/
	private double cdamr;//现金到期债务比
	private double iocr;//流入流出量现金比
	/*商业信用指标*/
	private double lmlr;//贷款清偿率
	private double pamlr;//应付账款清偿率
	private double dlr;//存贷款占比
	private Company company;
	
	@Column(name="Pro_AssetLiabilityRatio")
	public double getAlr() {
		return alr;
	}
	@Column(name="Pro_AccountReceivableTurnover")
	public double getArt() {
		return art;
	}
	@Column(name="Pro_AssetReturn")
	public double getAssetReturn() {
		return assetReturn;
	}
	@Column(name="Pro_CashRatio")
	public double getCashRatio() {
		return cashRatio;
	}
	@Column(name="Pro_CashDebtsAtMaturityRatio")
	public double getCdamr() {
		return cdamr;
	}
	@Column(name="Pro_CapitalGainRatio")
	public double getCgr() {
		return cgr;
	}
	@ManyToOne
	@JoinColumn(name="Company_Id")
	public Company getCompany() {
		return company;
	}
	@Column(name="Pro_CurrentRatio")
	public double getCurrentRatio() {
		return currentRatio;
	}
	@Column(name="DepositLoanRatio")
	public double getDlr() {
		return dlr;
	}
	@Column(name="Pro_DebtToEquityRatio")
	public double getDter() {
		return dter;
	}
	@Column(name="Pro_DebtToNettangibleRatio")
	public double getDtnr() {
		return dtnr;
	}
	@Column(name="Pro_EquityReturn")
	public double getEquityReturn() {
		return equityReturn;
	}
	@Column(name="Pro_FixedAssetTurnover")
	public double getFat() {
		return fat;
	}
	@Column(name="Pro_InventoryAssetTurnover")
	public double getIat() {
		return iat;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	@Column(name="Pro_InterestCover")
	public double getInterestCover() {
		return interestCover;
	}
	@Column(name="Pro_InflowOutflowCashRatio")
	public double getIocr() {
		return iocr;
	}
	@Column(name="Pro_LoanMaturityLiquidityRatio")
	public double getLmlr() {
		return lmlr;
	}
	@Column(name="Pro_MainProfitGrowth")
	public double getMpg() {
		return mpg;
	}
	@Column(name="Pro_NetMargin")
	public double getNetMargin() {
		return netMargin;
	}
	@Column(name="Pro_OperatingMargin")
	public double getOperatingMargin() {
		return operatingMargin;
	}
	@Column(name="Pro_PayableAccountMaturityLiquidityRatio")
	public double getPamlr() {
		return pamlr;
	}
	@Column(name="Pro_PretaxMargin")
	public double getPretaxMargin() {
		return pretaxMargin;
	}
	@Column(name="Pro_QuickRatio")
	public double getQuickRatio() {
		return quickRatio;
	}
	@Column(name="Pro_SalesGrowth")
	public double getSalesGrowth() {
		return salesGrowth;
	}
	@Column(name="Pro_SalesMargin")
	public double getSalesMargin() {
		return salesMargin;
	}
	@Column(name="Pro_TotalAssetTurnover")
	public double getTat() {
		return tat;
	}
	@Column(name="Pro_Year")
	public int getYear() {
		return year;
	}
	
	/*set方法*/
	public void setAlr(double alr) {
		this.alr = alr;
	}
	public void setArt(double art) {
		this.art = art;
	}
	public void setAssetReturn(double assetReturn) {
		this.assetReturn = assetReturn;
	}
	public void setCashRatio(double cashRatio) {
		this.cashRatio = cashRatio;
	}
	public void setCdamr(double cdamr) {
		this.cdamr = cdamr;
	}
	public void setCgr(double cgr) {
		this.cgr = cgr;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public void setCurrentRatio(double currentRatio) {
		this.currentRatio = currentRatio;
	}
	public void setDlr(double dlr) {
		this.dlr = dlr;
	}
	public void setDter(double dter) {
		this.dter = dter;
	}
	public void setDtnr(double dtnr) {
		this.dtnr = dtnr;
	}
	public void setEquityReturn(double equityReturn) {
		this.equityReturn = equityReturn;
	}
	public void setFat(double fat) {
		this.fat = fat;
	}
	public void setIat(double iat) {
		this.iat = iat;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setInterestCover(double interestCover) {
		this.interestCover = interestCover;
	}
	public void setIocr(double iocr) {
		this.iocr = iocr;
	}
	public void setLmlr(double lmlr) {
		this.lmlr = lmlr;
	}
	public void setMpg(double mpg) {
		this.mpg = mpg;
	}
	public void setNetMargin(double netMargin) {
		this.netMargin = netMargin;
	}
	public void setOperatingMargin(double operatingMargin) {
		this.operatingMargin = operatingMargin;
	}
	public void setPamlr(double pamlr) {
		this.pamlr = pamlr;
	}
	public void setPretaxMargin(double pretaxMargin) {
		this.pretaxMargin = pretaxMargin;
	}
	public void setQuickRatio(double quickRatio) {
		this.quickRatio = quickRatio;
	}
	public void setSalesGrowth(double salesGrowth) {
		this.salesGrowth = salesGrowth;
	}
	public void setSalesMargin(double salesMargin) {
		this.salesMargin = salesMargin;
	}
	public void setTat(double tat) {
		this.tat = tat;
	}
	public void setYear(int year) {
		this.year = year;
	}
}
